﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;
using DAO;

namespace BUS
{
    public class PhieuGuiHangBUS
    {
        public List<PhieuGuiHangDTO> HienThi()
        {
            PhieuGuiHangDAO dao = new PhieuGuiHangDAO();
            return dao.HienThi();
        }

        public int ThemPGH(PhieuGuiHangDTO dto)
        {
            PhieuGuiHangDAO dao = new PhieuGuiHangDAO();
            return dao.ThemPGH(dto);
        }

        public int CapNhatPGH(PhieuGuiHangDTO dto)
        {
            PhieuGuiHangDAO dao = new PhieuGuiHangDAO();
            return dao.CapNhatPGH(dto);
        }

        public int KiemTraMAPGH(string mapg)
        {
            PhieuGuiHangDAO dao = new PhieuGuiHangDAO();
            return dao.KiemTraMAPGH(mapg);
        }
    }
}
